Skip to content

docs(subpath): revisited#394

Merged
pombredanne merged 1 commit intopackage-url:masterfrom
jkowalleck:package-url/spec/subpath-revisit
Feb 19, 2025
Merged

docs(subpath): revisited#394
pombredanne merged 1 commit intopackage-url:masterfrom
jkowalleck:package-url/spec/subpath-revisit

Conversation

@jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Feb 13, 2025

as of #379, the subpath part was revisited

  • apply RFC 2119/8174
  • revisited the spec
  • revisited the test suite -- all good

@jkowalleck jkowalleck mentioned this pull request Feb 6, 2025
8 tasks
@jkowalleck jkowalleck force-pushed the package-url/spec/subpath-revisit branch from ca19551 to 84244c6 Compare February 13, 2025 13:44
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the package-url/spec/subpath-revisit branch from 84244c6 to 84a6995 Compare February 13, 2025 13:56
@jkowalleck jkowalleck added PURL core specification Format and syntax that define PURL (excludes PURL type definitions) PURL component: subpath Ecma and removed PURL core specification Format and syntax that define PURL (excludes PURL type definitions) labels Feb 13, 2025
- Discard any empty string segment from that split
- Discard any '.' or '..' segment from that split
- Percent-decode each segment
- Discard any '.' or '..' segment from that split
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

percent decode first, then discard ../..
see the tests in accordance #368

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@johnmhoran johnmhoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkowalleck Sorry for the delay -- looks good to me -- good catch! 👍

Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging. Thanks!

@pombredanne pombredanne merged commit db1acf5 into package-url:master Feb 19, 2025
@matt-phylum matt-phylum mentioned this pull request Mar 10, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants